package org.bronycorps.mlptss.domain.model.event;

import java.util.EventObject;

import org.bronycorps.mlptss.domain.model.AbstractActorModel;
import org.bronycorps.mlptss.domain.model.Boss;
import org.bronycorps.mlptss.domain.model.Enemy;
import org.bronycorps.mlptss.domain.model.Missile;
import org.bronycorps.mlptss.domain.model.Player;
import org.bronycorps.mlptss.domain.model.SpecialMissile;

public class StateChangeEvent extends EventObject {

	public StateChangeEvent(AbstractActorModel source) {
		super(source);
	}

	public Boss getBoss() {
		return (Boss) getSource();
	}

	public Enemy getEnemy() {
		return (Enemy) getSource();
	}

	public Missile getMissile() {
		return (Missile) getSource();
	}

	public Player getPlayer() {
		return (Player) getSource();
	}

	public SpecialMissile getSpecialMissile() {
		return (SpecialMissile) getSource();
	}

}
